package com.tz.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="bs_picture")
public class Picture implements Serializable{
	
	private static final long serialVersionUID = 1531750636334874907L;

	private long id;
	
	private String path;
	
	private boolean cover;
	
	public Picture() {
		
	}

	public Picture(String path, boolean cover) {
		super();
		this.path = path;
		this.cover = cover;
	}
	@Id
	@GeneratedValue
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public boolean isCover() {
		return cover;
	}

	public void setCover(boolean cover) {
		this.cover = cover;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Picture [id=");
		builder.append(id);
		builder.append(", path=");
		builder.append(path);
		builder.append(", cover=");
		builder.append(cover);
		builder.append("]");
		return builder.toString();
	}
	
	
	
	
	
}
